package com.iwop.moto.dao;

import com.iwop.moto.model.FUserLottery;
import org.apache.ibatis.annotations.Param;

import java.io.Serializable;
import java.util.List;

/**
 * 用户订单抽奖
 * Created by user on 2016/12/9.
 */
public interface FUserLotteryDao extends BaseDAO<FUserLottery> {

    int add(FUserLottery fUserLottery);

    int del(String sid);

    int update(FUserLottery fUserLottery);

    FUserLottery findOneById(Serializable Id);


    Integer findOneByUserIdAndOrderId(@Param("lotteryUserId") String lotteryUserId,
                                           @Param("orderId") String orderId);
}
